package com.xsf.jieyou.provider.service;

import com.xsf.jieyou.provider.api.TbGoodsService;
import com.xsf.jieyou.provider.domain.TbGoods;
import com.xsf.jieyou.provider.mapper.TbGoodsMapper;
import org.apache.dubbo.config.annotation.Service;

import javax.annotation.Resource;

/**
 * 拍品 Dubbo接口实现类
 *
 * @author xsfno1
 * @version v1.0.0
 * @date 2020/3/19 22:21
 * @see com.xsf.jieyou.provider.service
 **/
@Service(version = "1.0.0")
public class TbGoodsServiceImpl implements TbGoodsService {
    @Resource
    private TbGoodsMapper tbGoodsMapper;

    @Override
    public Integer insertTbGoodsService(TbGoods tbGoods) {
        return this.tbGoodsMapper.insert(tbGoods);
    }

    @Override
    public TbGoods selectTbGoodsService(Long goodsId) {
        return this.tbGoodsMapper.selectByPrimaryKey(goodsId);
    }
}
